package com.joysuch.wwyt.edu.bean;

import com.joysuch.wwyt.core.entity.BaseUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author ZhangDong
 * @Date 2020/6/2 17:17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EduCertEditUserNameBean {

    private Long id;
    private String name;

    public EduCertEditUserNameBean(BaseUser baseUser) {
        this.id = baseUser.getId();
        this.name = baseUser.getRealName();
    }
}
